Txn
Properties
Get the check number as an integer (returns 0 if it's not an integer)
Get the checknumber associated with this transaction.
The status associated with this transaction.
Returns the value of the Txn in terms of a non-security currency. For example, if this is for the security split of an investment transaction, then it will return the value of the buy/sell/short/cover in terms of the investment account's currency instead of the number of shares.
Get the date that this transaction was entered.
The description associated with this transaction.
The amount of the transaction in a different currency than that of this transaction's account. This might be the original currency from a reminder, the downloaded form of this transaction, or possibly an amount entered using a UI that performed automatic currency conversion.
Get the list of tags or keywords associated with the other side of this transaction
Returns the account to which the other side of this transaction is assigned
Get the number of transactions from the "other side" of this transaction. For splits, this will always be 1. For ParentTxns, this will be the number of splits.
Return a data class with the currency and value of the other side of this Txn
Get a character that indicates the status of this transaction
Get the date of this transaction for tax purposes.
Get the type of transaction. Usually only used in the investment register to differentiate between buy, sell, and stock split transactions.
Return a data class with the currency and value of this Txn
Functions
Get the transaction that makes up the other side of this transaction at the specified index. For SplitTxns, this index should always be 0 because there is only one "other transaction". for ParentTxns, this will return the split at the specified index.
Get the value associated with the given key (if any) in this transaction's set of tags.
Get the value associated with the given key in this transactions set of tags. If there is no value associated with the given key, return the given default value.
Check whether this transaction includes a transfer to the given account.